<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="blogUser">

<xsl:variable name="sesso">
	<xsl:for-each select="Info">
	<xsl:choose>
		<xsl:when test='@questId="7" and @answerid="24"'>
			<tr><td colspan="2">1</td></tr>
		</xsl:when>
		<xsl:when test='@questId="7" and @answerid="25"'>
			<tr><td colspan="2">0</td></tr>
		</xsl:when>
		<xsl:when test='@questId="7" and @answerid="26"'>
			<tr><td colspan="2">1</td></tr>
		</xsl:when>
		<xsl:when test='@questId="7" and @answerid="27"'>
			<tr><td colspan="2">0</td></tr>
		</xsl:when>
	</xsl:choose>
	</xsl:for-each>
</xsl:variable>

<div style="min-width:140px; text-align:right;">
			<xsl:choose>
				<xsl:when test="count(@thumb) &gt; 0 and count(@splash) &gt; 0">
					<a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" src="http://imgs.fricchettone.com/user/thumb/{@thumb}"/></a>
				</xsl:when>
				<xsl:when test="count(@thumb) &gt; 0 and count(@splash) = 0">
					<center><img border="0" src="http://imgs.fricchettone.com/user/thumb/{@thumb}"/></center>
				</xsl:when>
				<xsl:when test="count(@thumb) = 0 and count(@splash) = 0 and count(@picname) &gt; 0">
					<center><a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" width="110px" src="/userspics/{@picname}"/></a></center>
				</xsl:when>
				<xsl:otherwise>
				</xsl:otherwise>
			</xsl:choose>
<div style="text-align:right; padding-bottom:4px;padding-top:5px;" class="blogBody"><a href="/profileShow.aspx?userGuid={@userid}"><xsl:value-of select="@nick"/></a></div>
<div style="text-align:right;" class="blogBody"><xsl:value-of select="@eta"/> anni</div>
<div style="text-align:right;" class="blogBody"><xsl:value-of select="@place"/></div>

			<xsl:choose>
				<xsl:when test="count(blog) = 0">
				</xsl:when>
				<xsl:otherwise>
					<p/>
					<div style="text-align:right;" class="blogBody"><b>Archivio blog:</b></div>
					<xsl:for-each select="blog">
						<div style="text-align:right;" class="blogBody">
							<a href="/userinfo/blog.aspx?userid={/blogUser/@userid}&amp;month={@month}&amp;year={@year}">
							<xsl:call-template name="monthNameIta">
							<xsl:with-param name="month" select="@month"/>
							</xsl:call-template>&#160;<xsl:value-of select="@year"/>
							</a>
						</div>
					</xsl:for-each>
				</xsl:otherwise>
			</xsl:choose>
</div>

</xsl:template>

</xsl:stylesheet>